Start Event (Report Object)

Sample Code - Start Event

The Start event occurs when the report starts printing or previewing.

Syntax
Event Start (Destination As CRPrintingDestination, 
useDefault As Boolean)
Parameters

Destination

Specifies CRPrintingDestination (see table below) indicating what "destination" the report will be printed to (that is, printer, window, exported, etc.).


Constant Value


crFromQuery

4


crToExport

3


crToNoWhere

0


crToPrinter

2


crToWindow

1

useDefault

Specifies Boolean value indicating if default behavior should occur after user's event code has run (that is, should the report start to print or preview?).


Remarks

This event is enabled by using the StartStopEventEnabled property of the EventInfo Object, obtained through the EventInfo property of the Report Object. For more information, see Object Model Events.



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com